package com.feihao.zhou.mapper;

import com.feihao.zhou.bean.Person;
import com.feihao.zhou.bean.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PersonMapper {

    //根据查询到的pid  来查询所有人：
    @Select("select * from person where id=#{pid}")
    abstract List<Person> selectById();


    //单表查询
    @Select("select * from student")
    List<Student> selectAllStudent();
}
